# -*-coding=utf-8 -*-
import copy

a = [1,2,3]
b = a
print id(a)
print id(b)
b[0] = 11
print a
a[1] = 22
print b

print '/*******浅复制*******/'

c = copy.copy(a) # 浅复制
print c
print id(c) == id(a)
c[1] = 222
print c
print a

a = [1,2,[3,4]]
d = copy.copy(a)
print id(a) == id(d)
print id(a[2])==id(d[2])
a[2][0] = 33
print a
print d

print '/*******深复制*******/'

e = copy.deepcopy(a)
print id(e[2]) == id(a[2])